package com.hgw.Demo02CommandPattern.Exercises17_10_3;

/**
 * Data time:2021/12/16 21:53
 * StudentID:2019112118
 * Author:hgw
 * Description: 关闭电灯，充当具体命令类
 */
public class OffElectricLight extends Command{
    private ElectricLight ELObj;

    public OffElectricLight() {
        ELObj = new ElectricLight();
    }

    @Override
    public void execute() {
       ELObj.offElectricLight();
    }

}
